package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void save(Employee employee, Long[] ids);
    void delete(Long id);
    void update(Employee employee, Long[] ids);
    Employee get(Long id);
    List<Employee> listAll();
    // 分页过滤查询
    PageInfo<Employee> query(QueryObject qo);
    // 登录
    Employee login(String username, String password);
    // 根据用户名查询员工
    Employee selectByUsername(String username);
    // 导出
    Workbook exportXls();
    // 导入
    void importXls(MultipartFile file) throws IOException;

    Employee updatePassword(String oldPassword, String newPassword);

    void reset(Long id);

    void setStatus(Long id);
}